import { defHttp } from '/@/utils/http/axios';

enum Api {
  operationInfo = '/operation/index/index',
  cpuLineInfo = '/operation/index/cpuLine',
  jvmLineInfo = '/operation/index/jvmLine',
  memoryLineInfo = '/operation/index/memoryLine',
}
/**
 * 查询运维仪表盘相关数据
 * @param params
 */
export const getOperationInfo = (params) => defHttp.get({ url: Api.operationInfo, params }, { isTransformResponse: false });

/**
 * 查询CPU折线图趋势
 * @param params
 */
export const getCpuLineInfo = (params) => defHttp.get({ url: Api.cpuLineInfo, params }, { isTransformResponse: false });

/**
 * 查询JVM折线图趋势
 * @param params
 */
export const getJvmLineInfo = (params) => defHttp.get({ url: Api.jvmLineInfo, params }, { isTransformResponse: false });

/**
 * 查询系统内存折线图趋势
 * @param params
 */
export const getMemoryLineInfo = (params) => defHttp.get({ url: Api.memoryLineInfo, params }, { isTransformResponse: false });
